using Microsoft.EntityFrameworkCore;
namespace Student.Models;
public class StudentDbContext:DbContext
{
    public DbSet<Students> Students{get;set;}=null!;
    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        base.OnConfiguring(optionsBuilder);
        var conString=$"server=SK-20240829BLHV\\SQLEXPRESS;database=Students;uid=sa;pwd=123456;TrustServerCertificate=true;";
        optionsBuilder.UseSqlServer(conString);
    }
}